package org.example.commonapi.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.commonapi.domain.Practice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.commonapi.dto.PracticeDto;
import org.example.commonapi.dto.PracticeInfoDto;

import java.util.List;

/**
* @author DELL
* @description 针对表【practice】的数据库操作Mapper
* @createDate 2024-05-31 21:26:16
* @Entity generator.domain.Practice
*/
@Mapper
public interface PracticeMapper extends BaseMapper<Practice> {

    List<PracticeInfoDto> selectPublic(@Param("difficulty") Integer difficulty, @Param("type") Integer type, @Param("name") String name, @Param("subject") String subject);

    List<PracticeInfoDto> selectPrivate(@Param("difficulty") Integer difficulty, @Param("type") Integer type, @Param("name") String name, @Param("subject") String subject, @Param("teacherId") Long teacherId);

    Practice getOne(Long id);
}




